import { createRouter,createWebHistory } from "vue-router" //引入router组件
import home from "@/views/home/home.vue"
import menu from "@/views/menu/menu.vue"  //引入对应·文件
import mine from "@/views/mine/mine.vue"

const router = createRouter({
    history:createWebHistory(),
    routes:[{
        path:'/home',
        name:'home',
        component:home
    },{
        path:'/menu',
        name:'menu',
        component:menu
    },{
        path:'/mine',
        name:'mine',
        component:mine
    }
]
})

// const routes = [{
        
// }]

export default router